package org.opens.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.opens.entity.ShiroUser;

@Mapper
public interface ShiroUserDao extends BaseMapper<ShiroUser> {

    @Select(value = "select * from shiro_user where name = #{name}")
    public ShiroUser findByName(@Param(value = "name") String name);

    public IPage<ShiroUser> queryPage(@Param(value = "page") Page<ShiroUser> page, @Param(value = "param") ShiroUser queryParam);

}
